package com.nike.util;

import java.util.Map;

import com.nike.bean.NikeHttpBean;
import com.nike.bean.NikeURLString;

public class DemdexUtil {
	public static void postDemDexAction(long oldTime,String blobBody,Map<String,String> userMap,String omtrdc_url,
			NikeHttpBean nikeHttpBean) {
		long beginTime = System.currentTimeMillis()/1000;
		long betweenTime = beginTime-oldTime;
		oldTime = beginTime;
		System.out.println(userMap.get("username"+"--blobBody--"+blobBody));
		omtrdc_url = NikeURLString.omtrdc_url+NikeDataUtil.getNum(8);
		try {
			nikeHttpBean = NikePayPreHttpClientUtil.nikeHttpPostDemdex(omtrdc_url, blobBody, nikeHttpBean, userMap);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
